<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ',							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',					'ab');
define('FOPEN_READ_WRITE_CREATE',				'a+b');
define('FOPEN_WRITE_CREATE_STRICT',				'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');

define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');
/**
 * 
 * custom define contants for global path in website
 * 
 */
$base_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$base_url .= "://".$_SERVER['HTTP_HOST'];
$base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);

define('BASE_URL_ADMIN', $base_url.'admin/');
define('SCRIPTS_PATH', $base_url.'assets/scripts/');
define('CSS_PATH', $base_url.'assets/css/');
define('IMAGES_PATH', $base_url.'assets/images/');
define('FONTS_PATH', $base_url.'assets/fonts/');
define('FONT_AWESOME', $base_url.'assets/font-awesome/');
define('CKEDITOR_PATH', $base_url.'assets/ckeditor/');
define('CKFINDER_PATH', $base_url.'assets/ckfinder/');
define('SLIDER_PATH', $base_url.'uploads/banners/');
define('IMAGES_HOME', $base_url.'uploads/home/');
define('OAUTH_FACEBOOK_APP_ID' , '490438847744597');
define('OAUTH_FACEBOOK_CONSUMER_SECRET' , '4fef598e3f80bdae37b81f51127faa87');

define('OAUTH_YAHOO_CONSUMER_KEY', 'dj0yJmk9ZFdqRlNvYndFNERnJmQ9WVdrOWNucGliR3M0TXpnbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD0wOQ--');
define('OAUTH_YAHOO_CONSUMER_SECRET', '762bb70b25a9ec2dec463a23d20048cf29d586bd');
define('OAUTH_YAHOO_DOMAIN', 'http://myprints.vn/yahoo/auth');
define('OAUTH_YAHOO_APP_ID', 'rzblk838');

define('ACTIVE', 1);

define('ROLE_CUSTOMER' , 10);

/** end custom define contans for global path */
/* End of file constants.php */
/* Location: ./application/config/constants.php */